// ==UserScript==
// @name         App喵去广告
// @namespace    https://www.appmiu.com/
// @version      0.1.0
// @description  try to take over the world!
// @author       Longmo
// @match         *://*.appmiu.com/*
// @require  https://scriptcat.org/lib/513/2.0.0/ElementGetter.js
// ==/UserScript==

(function() {
    'use strict';

    const style = document.createElement("style");
    style.id = "longmo_style";
    style.innerHTML = `

        .google-auto-placed.ap_container{
            display:none;
        }

        #mys-wrapper,.mys-wrapper, .skyscraper-boar{
               display:none !important;
        }

        .adsbygoogle.adsbygoogle-noablate,.adsbygoogle{
             display:none !important;
        }
    `;

    document.head.appendChild(style);

    elmGetter.get('.adsbygoogle').then(div => {
        div.style.dispaly='none !important'
    });

    const listener = elmGetter.each('.adsbygoogle', document, (elm, isInserted) => {
        if (isInserted) {
            elm.style.dispaly='none !important'
        }
    });
})();
